home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / AMOS / AMOSList-0697 / AMOSLIST / text0218.txt < prev    next >
Encoding:
Text File  |  1997-07-03  |  1.4 KB  |  31 lines

  1. On 23-Jun-97, Keith Hill wrote:
  2. >Yeah, good point.  Now, if I'm stripping out every unnecessary bit of code
  3. >to help the slower machines, how can I get it running sensibly on faster
  4. >machines without slowing it down too much ??
  5.  
  6. Now I know how to explain it:
  7.  
  8. A couple of my friends from school run a PC-network where they're usually
  9. playing a game like Quake. Now, one of them has a P-75 and run the game with
  10. about 15fps. Another has a P-200MMX and can easily run 30fps. However the game
  11. itself runs with the same speed on both computers, otherwise it would be
  12. pretty fu**ed up, if the P-75 guy would play in the other players' past (like
  13. time-travelling and stuff...) since his computer would always be behind. Get
  14. the point?
  15.  
  16. To solve the problem you could check the speed of the machine in the beginning
  17. of the game and according to this value change the speed of the monsters.
  18. On the other hand; this would still not make the game run the same speed on
  19. all computers. I guess the best would be if you could make the main game loop
  20. (where is the monsters, the hero?) run exactly 50fps on any computer and then
  21. make the slow operations (drawing onto the screen, I presume) run in less than
  22. this according to the speed of the computer. Get it?
  23.  
  24. Has anybody else solved this problem in a better way?
  25.  
  26. -- 
  27. rune j. keller - sporuplundsvej 105 - dk-8472 sporup - keller@vip.cybercity.dk
  28.     - there's the television... look, listen, kneel, pray... commercials!
  29.  
  30.  
  31.